package org.keyroy.test;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

public class T1 {
	public static void main(String[] args) {
		System.out.println((1.25f% 1));
		
		try {
			List<String> source = new ArrayList<String>();
			source.add("/res/gnome_edit_delete.png");
			source.add("res/gnome_edit_delete.png");
			source.add("gnome_edit_delete.png");
			source.add("/gnome_edit_delete.png");
			for (int i = 0; i < source.size(); i++) {
				if (readSource(source.get(i)) != null) {
					System.out.println(source.get(i));
				}
			}

			System.out.println("over");
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		System.out.println("BYTE : min = " + Byte.MIN_VALUE +"    max = " + Byte.MAX_VALUE);
		System.out.println("SHORT : min = " + Short.MIN_VALUE +"    max = " + Short.MAX_VALUE);
		System.out.println("INT : min = " + Integer.MIN_VALUE +"    max = " + Integer.MAX_VALUE);
	}

	private static final String readSource(String source) {
		try {
			InputStream inputStream = T1.class.getResourceAsStream(source);
			if (inputStream != null) {
				return source;
			}

		} catch (Exception e) {
		}

		return null;
	}
}
